﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BBPA.Admin.Sys.Group_Buy
{
    public partial class History_Detail : FormPage
    {
        BLL.GroupBuy bll = new BLL.GroupBuy();
        Model.GroupBuy gbmodel = new Model.GroupBuy();
        protected EnumHelper.UserType userType;
        protected bool isAdmin;
        protected void Page_Load(object sender, EventArgs e)
        {
            userType = Security.GetCurrentUserType();
            isAdmin = userType == EnumHelper.UserType.Administrator;
        }

        /// <summary>
        /// 初始化本页Model
        /// </summary>
        public override void Page_Load_DefaultModel() { gbmodel = bll.GetModel(Master.id); }

        /// <summary>
        /// 初始化表单
        /// </summary>
        public override void Form_Default()
        {
            Master.HideSubmit();
        }

        /// <summary>
        /// 绑定表单数据【修改时用】
        /// </summary>
        public override void Form_Bind()
        {

            BBPA.BLL.Group_Good gg_bll = new BLL.Group_Good();
            DataTable dt = gg_bll.GetList_dt("", " gg_gbid=" + Master.id);
            this.rp.DataSource = dt;
            this.rp.DataBind();


        }
    }
}